package com.health.mapper;

import com.health.entity.Meal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.health.entity.pojo.dto.QueryMealDTO;
import com.health.entity.pojo.vo.MealVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 套餐表 Mapper 接口
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-18
 */
public interface MealMapper extends BaseMapper<Meal> {


    List<MealVO> listMealPage(@Param("queryMealDTO") QueryMealDTO queryMealDTO);

    @Update("UPDATE meal SET is_shelves = #{isShelves} WHERE id = #{id}")
    Boolean changeMedicalShelves(boolean isShelves, Integer id);

    Boolean changeMedicalShelvesMulti(boolean isShelves, List<Integer> ids);

    Boolean deleteMedicalShelvesMulti(List<Integer> ids);
}
